import request from "@/utils/request";

// 获取测量单列表
export const getMeasureOrderPage = data => {
  return request({
    url: "/mall/tenant/merchant/measureOrder/page",
    method: "post",
    data
  });
};

// 工厂测量单详情
export const getMeasureDetails = data => {
  return request({
    url: `/mall/tenant/merchant/measureOrder/details/${data.measureOrderId}`,
    method: "get"
  });
};

// 工厂录入测量单数据
export const inputData = data => {
  return request({
    url: "/mall/tenant/merchant/measureOrder/inputData",
    method: "post",
    data
  });
};

// 测量单-撤销
export const cancelOrder = data => {
  return request({
    url: `/mall/tenant/merchant/measureOrder/cancelOrder/${data.measureOrderId}`,
    method: "get"
  });
};

// 测量单删除
export const measureOrderDel = data => {
  return request({
    url: `/mall/tenant/merchant/measureOrder/delete/${data.measureOrderId}`,
    method: "get"
  });
};
